// 客户联系人信息
import request from "@/utils/https/requests";

// 列表
export function dwLinkmanInfoList(data: any) {
    return request({
        url: "/dwLinkmanInfo/list", method: "post", data,
    });
}

// 添加
export function postAddDwLinkmanInfo(data: any) {
    return request({
        url: "/dwLinkmanInfo/postAdd", method: "post", data,
    });
}

// 修改
export function postModDwLinkmanInfo(data: any) {
    return request({
        url: `/dwLinkmanInfo/postMod/{${data.id}`, method: "post", data,
    });
}

// 删除
export function postDeleteDwLinkmanInfo(id: string) {
    return request({
        url: `/dwLinkmanInfo/postDelete/${id}`, method: "post",
    });
}

// 逻辑 删除
export const postLogicDeleteDwLinkmanInfo = (id) => {
    return request({
        url: `/dwLinkmanInfo/postLogicDelete/${id}`, method: 'post'
    })
}

// 详情
export function dwLinkmanInfoDetail(id: string) {
    return request({
        url: `/dwLinkmanInfo/detail/${id}`, method: "post",
    });
}